package com.my.json.sensitive.config;


import com.my.json.sensitive.enums.SensitiveType;

/**
 * @author hexinglin
 * @created 2021-12-29 15:29
 **/
public abstract class AbstractSensitiveHandler  implements SensitiveHandler {
    public AbstractSensitiveHandler() {
    }

    @Override
    public String sensitive(String text, SensitiveType type) {
        return type.equals(this.strategy()) ? this.sensitive(text) : null;
    }

    public abstract SensitiveType strategy();

    public abstract String sensitive(String var1);
}
